package com.jcl.recruit.elasticsearch.resume.dao;

import com.jcl.recruit.elasticsearch.mapper.SearchResumeProjectMapper;
import com.jcl.recruit.elasticsearch.resume.model.SearchResumeProject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SearchResumeProjectDao

 * @Author yyliu
 * @Date 2018/11/13 10:37
 * @Version 1.0
 **/
@Component
public class SearchResumeProjectDao implements SearchResumeProjectMapper {

    @Autowired
    SearchResumeProjectMapper searchResumeProjectMapper;

    @Override
    public List<SearchResumeProject> findListByResumeIds(List<Integer> resumeIds) {
        return searchResumeProjectMapper.findListByResumeIds(resumeIds);
    }

    @Override
    public List<Map<String, Object>> findObjListByResumeId(Integer id) {
        return searchResumeProjectMapper.findObjListByResumeId(id);
    }

    @Override
    public List<SearchResumeProject> findListByResumeId(Integer id) {
        return searchResumeProjectMapper.findListByResumeId(id);
    }

    @Override
    public int batchInsert(List<SearchResumeProject> list) {
        return searchResumeProjectMapper.batchInsert(list);
    }

    @Override
    public int batchDeleteByResumeIds(List<Integer> ids) {
        return searchResumeProjectMapper.batchDeleteByResumeIds(ids);
    }
}
